package com.kds.changzhou.message.outboud;

import com.kds.changzhou.utility.TemplateService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 孔德嵩
 */
@Component
public class OutBoundMessageFactory {

    @Resource
    private TemplateService templateService;

    public AbstractOutBoundMessage buildRequestMessage() {

        return new RequestMessage(templateService);

    }

    public AbstractOutBoundMessage buildMD5Message() {

        return new MD5Message(templateService);

    }

    public AbstractOutBoundMessage buildHeartbeatMessage() {

        return new HeartbeatMessage(templateService);
    }

    public AbstractOutBoundMessage buildReportMessage() {

        return new ReportMessage(templateService);

    }
}
